<%--
  Created by IntelliJ IDEA.
  User: 12994
  Date: 2022/4/15
  Time: 20:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>购物页面</title>
</head>
<body>
<a href="index.jsp" style="color: red">返回首页</a>
<%--<%--%>
<%--    session.removeAttribute("id");--%>
<%--%>--%>
<a href="cart.jsp" style="color: red">查看购物车</a>

<h2 style="font-max-size: xxx-large; color:orange"  align="center" >欢迎尊敬的:${username.username}_VIP___开始购物！！</h2>
        <table cellspacing="0" align="center" border="1" width="500px" >

            <tr style="color: red">
                <th>商品名称</th>
                <th>商品价格</th>
                <th>查看详情</th>
            </tr>
            <c:forEach items="${listshop}" var="allgoods">
                <tr align="center" style="color:purple">
                    <td>${allgoods.name}</td>
                    <td>${allgoods.price}</td>
                    <td><a href="details?id=${allgoods.id}" style="color: mediumblue">查看详情</a></td>
                </tr>
            </c:forEach>

        </table>
</body>
</html>
